import '../../util/_base_export.dart';
import '../../util/_view_export.dart';

class DealsItemComponent extends StatelessWidget {
  final String iv_imgge;
  final String iv_name;
  final String iv_expire;

  DealsItemComponent({
    Key? key,
    required this.iv_imgge,
    this.iv_name='',
    this.iv_expire='',
  }) : super(key: key);

  Widget build(BuildContext context) {
    return Card(
        child: Row(
      children: <Widget>[
        CachedNetworkImage(
          imageUrl: iv_imgge,
          fit: BoxFit.cover,
        ),
        Column(
          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          children: <Widget>[
            AppTextService.simpleText(iv_name, iv_color: AppColor.blackMain, iv_size: 12),
            AppTextService.simpleText(iv_expire, iv_color: AppColor.greyText, iv_size: 12),
          ],
        ),
      ],
    ));
  }
}
